# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

PYTHON_DEPEND="*:2.5"

inherit distutils eutils

MY_PN="xmlrpcplugin"
MY_P="${MY_PN}-${PV}"
MY_V="trunk"
DESCRIPTION="Remote Procedure Call plugin for Trac"
HOMEPAGE="http://trac-hacks.org/wiki/XmlRpcPlugin"
SRC_URI="http://trac-hacks.org/changeset/latest/${MY_PN}/${MY_V}?old_path=/&format=zip -> ${P}.zip"

LICENSE="as-is"
SLOT="0"
KEYWORDS=""
IUSE=""

DEPEND="app-arch/unzip"
RDEPEND="
		dev-libs/clearsilver
		www-apps/trac
		"

S="${WORKDIR}/${MY_PN}/${MY_V}"

pkg_postinst() {
	elog "To install the plugin for a desired environment \"foo\""
	elog "add this to its trac.ini:"
	elog "[components]"
	elog "tracrpc.* = enabled"
}
